package com.ruoyi.operation.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * sql执行工具业务对象
 *
 * @author ruoyi
 * @date 2025-06-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TSqltoolBo extends BaseEntity {

    /**
     * id
     */
    @NotBlank(message = "id不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 部门id
     */
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptid;

    /**
     * 系统id
     */
    @NotBlank(message = "系统id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String busisystemid;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String toolname;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memo;

    /**
     * 数据库类型
     */
    @NotBlank(message = "数据库类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dbtype;

    /**
     * 数据库url
     */
    @NotBlank(message = "数据库url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dburl;

    /**
     * 数据库用户
     */
    @NotBlank(message = "数据库用户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dbusername;

    /**
     * 数据库密码
     */
    @NotBlank(message = "数据库密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dbpassword;

    /**
     * sql内容
     */
    @NotBlank(message = "sql内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sqlcontent;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
